def bel():
    with open('Data.txt','r+') as f:
        data_r=f.read().split()
    id=input('删除id:\n')
    if id=='':
        return True
    for i in range(len(data_r)):
        if id==eval(data_r[i])[0]:
            print('',end='')
        else:
            with open('Data.txt','w') as f:
                f.write(' {}'.format(data_r[i]))
    if 'y'==input('是否继续删除(y/n)'):
        bel()
    else:
        with open('Data.txt','r+') as f:
            data_r=f.read().split()
        for i in range(len(data_r)):
            print('\nid:{}   姓名:{}   性别:{}   年龄:{}   身高:{}   体重:{}   班级:{}'.format(eval(data_r[i])[0],eval(data_r[i])[1],eval(data_r[i])[2],eval(data_r[i])[3],eval(data_r[i])[4],eval(data_r[i])[5],eval(data_r[i])[6]))
            print('\n')
